import { component$, useSignal } from "@builder.io/qwik";



export default component$(() => {
    const count = useSignal(0);
    return (
        <div>
            <p>Count:{count.value}</p>
            <button onClick$={() => count.value++}>Increment</button>
            <button onClick$={() => count.value--}>Subtract</button>
            <H name='yangtao' />
            <H />
        </div>
    );
});

const H = component$((props: any) => {
    return <h3>{props.name ?? 'undefined'}</h3>
})